package com.enterprise.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.enterprise.dao.BaseDao;
import com.enterprise.dao.CarouselDao;
import com.enterprise.entity.Carousel;
import com.enterprise.entity.page.PageModel;

@Repository("carouselDao")
public class CarouselDaoImpl implements CarouselDao{

	
	@Resource
	private BaseDao dao;
	
	public void setDao(BaseDao dao) {
		this.dao = dao;
	}
	
	
	@Override
	public int insert(Carousel e) {
		// TODO Auto-generated method stub
		return dao.insert("carousel.insert", e);
	}

	@Override
	public int delete(Carousel e) {
		// TODO Auto-generated method stub
		return dao.delete("carousel.delete", e);
	}

	@Override
	public int update(Carousel e) {
		// TODO Auto-generated method stub
		return dao.update("carousel.update", e);
	}

	@Override
	public Carousel selectOne(Carousel e) {
		// TODO Auto-generated method stub
		return (Carousel) dao.selectOne("carousel.selectOne", e);
	}

	@Override
	public PageModel selectPageList(Carousel e) {
		// TODO Auto-generated method stub
		return dao.selectPageList("carousel.selectPageList", "carousel.selectPageCount", e);
	}

	@Override
	public List<Carousel> selectList(Carousel e) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int deleteById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Carousel selectById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

}
